Skip to content

Fix POSIX compliance in send-heartbeat string comparison#1518

Merged
gsanchietti merged 2 commits intomy_migrationfrom
copilot/sub-pr-1509-another-one
Feb 11, 2026
Merged

Fix POSIX compliance in send-heartbeat string comparison#1518
gsanchietti merged 2 commits intomy_migrationfrom
copilot/sub-pr-1509-another-one

Conversation

Copy link

Copilot AI commented Feb 11, 2026

The send-heartbeat script uses #!/bin/sh but was using == for string comparison, which is a bash extension and not POSIX-compliant.

Changes:

  • Changed == to = in string comparison (line 26)
  • Aligns with existing convention in send-inventory and other shell scripts
-if [ "$TYPE" == "enterprise" ]; then
+if [ "$TYPE" = "enterprise" ]; then

This ensures compatibility with all POSIX-compliant shells.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: gsanchietti <804596+gsanchietti@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback on sending data to new enterprise portal proxy Fix POSIX compliance in send-heartbeat string comparison Feb 11, 2026
Copilot AI requested a review from gsanchietti February 11, 2026 10:31
@gsanchietti gsanchietti marked this pull request as ready for review February 11, 2026 10:32
@gsanchietti gsanchietti merged commit bc812af into my_migration Feb 11, 2026
@gsanchietti gsanchietti deleted the copilot/sub-pr-1509-another-one branch February 11, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants